package net.yunzhanyi.generic.mapper;

import net.yunzhanyi.generic.domain.model.PostUpvote;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author bestct
 */
@Mapper
public interface PostUpvoteMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PostUpvote record);

    int insertSelective(PostUpvote record);

    PostUpvote selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PostUpvote record);

    int updateByPrimaryKey(PostUpvote record);

    PostUpvote selectUpvoteStatus(@Param("postId") long postId, @Param("uid") long uid);
}